import '../public/index'
import store from 'store'

let data = new Vue({
  el: '#data',
  data: () => ({
    devName: '',
    buildingName: '',
    hobPeriod: '',
    hobUnitStr: '',
    hobExpectTime: '',
    hobSpecificTime: '',
    hobWay: '',
    hobPreTime: '',
    hobPreNum: '',
    orderFailureTime: ''
  }),
  mounted: function () {
    let storeData = store.get('storeData');

    console.log(storeData)

    if (!storeData) {
      layer.msg('页面跳转错误', {
        icon: 5
      })

      setTimeout(() => {
        window.location = './index.html'
      }, 1000);

      return;
    }

    $.extend(this.$data, storeData);
  }
})


